package com.tsing.cli.system.vo.resp;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @author TheTsing
 * @since 2022-11-29 11:48
 */
@Getter
@Setter
public class LogPageRespVO {

    @Schema(description = "id")
    private String id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "ip")
    private String ip;

    @Schema(description = "ip来源")
    private String address;

    @Schema(description = "浏览器")
    private String browser;

    @Schema(description = "方法描述")
    private String description;

    @Schema(description = "参数")
    private String params;

    @Schema(description = "异常")
    private String exception;

    @Schema(description = "请求耗时")
    private Long requestTime;

    @Schema(description = "创建时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}
